
def sex_filter(value):
    return '男' if value == 0 else '女'

def register_filter(app):
    app.jinja_env.filters['sex'] = sex_filter
